<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="ISO-8859-1" />
	<xsl:template match="/">
		<html>
			<title>Catalogue</title>
			<link href="../XSL/style.css" rel="stylesheet" type="text/css" media="screen" />
			<body>
			<h1>Catalogue de produits</h1>
				<xsl:for-each select="//entreprise">
					<h3>
						<xsl:value-of select="nomEntreprise" />
					</h3>
					
					<p align="justify">
						<table classe="gridtable">
							<tr>
								<th>ID</th>
								<th>Nom</th>
								<th>Stock</th>
								<th>Prix unitaire</th>
								<th>Minimum de commande</th>
							</tr>
							<xsl:for-each select="produit">
								<tr>
									<td>
										<xsl:value-of select="idProduit" />
									</td>
									<td>
										<xsl:value-of select="nomProduit" />
									</td>
									<td>
										<xsl:value-of select="stock" />
									</td>
									<td>
										<xsl:value-of select="prixUnitaire" />
									</td>
									<td>
										<xsl:value-of select="minimumCommande" />
									</td>
								</tr>

							</xsl:for-each>
						</table>
					</p>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>